package cn.qiyu5522.constant;

/**
 * ClassName: SystemConsKeys
 * Package: cn.qiyu5522.constant
 * Description:
 *
 * @Author: Tonkey
 * @Create：2024/4/12-10:46
 * @Version: v1.0
 */
public class SystemConsKeys {

    /**
     * 设置存放 redis key 的 前缀 blogLogin:
     */
    public static final String BLOG_LOGIN="blogLogin:";

    /**
     * 管理系统登录
     */
    public static final String BACK_USER_LOGIN="userLogin:";

    /**
     * 设置 redis key 过期时间 24小时
     */
    public static final Long REDIS_TTL=24*60 * 60 *1000L;// 60 * 60 *1000  一个小时

    /**
     * 设置 redis key 过期
     */
    public static final Long REDIS_EXPIRED= 0L;
    public static final String READ_ONLY_POLICY = "read_only";
    public static final String DEFAULT_POLICY = "default";
    public static final String AVATAR_UPLOAD = "avatar";

    public static final String USERNAME_NOT_NULL= "用户名不能为空";
    public static final String NICKNAME_NOT_NULL= "昵称不能为空";
    public static final String PASSWORD_NOT_NULL= "密码不能为空";
    public static final String EMAIL_NOT_NULL= "邮箱不能为空";

    public static final String ARTICLE_VIEW_COUNT = "article:viewCount";
    public static final String ARTICLE_IMAGE_UPLOAD = "article";
}
